package com.flyxiaozhu.erp.core.repositories;

import com.flyxiaozhu.erp.core.entities.GoodsAttrName;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;

/**
 * @author flyxiaozhu
 * @date 2019-04-17 22:42
 */
public interface GoodsAttrNameRepository extends JpaRepository<GoodsAttrName, Long> {
    List<GoodsAttrName> findByGoodsId(long goodsId);

    void deleteByGoodsId(long goodsId);

    void deleteAllByGoodsIdIn(Collection goodsIds);
}
